package com.tarena.lbs.article.web;

import com.tarena.lbs.article.web.event.output.TriggerMsgOutputSource;
import org.elasticsearch.client.RestHighLevelClient;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
//核心注解

/**
 *组合注解
 * @SpringBootConfiguration
 */
@SpringBootApplication(scanBasePackages = {
        "com.tarena.lbs.article.web",
        "com.tarena.lbs.common.security"
})
@MapperScan("com.tarena.lbs.article.web.mapper")
@EnableBinding(TriggerMsgOutputSource.class)
public class ArticleWeb {
    public static void main(String[] args) {
        org.springframework.boot.SpringApplication.run(ArticleWeb.class, args);
    }
}
